﻿Public Class Archivos
    Public Shared Function ReadHtmlFile(ByVal htmlFileNameWithPath As String) As System.Text.StringBuilder
        Dim htmlContent As New System.Text.StringBuilder()
        Dim line As String
        Try
            Using htmlReader As New System.IO.StreamReader(htmlFileNameWithPath)
                line = htmlReader.ReadLine()
                Do Until line Is Nothing
                    htmlContent.Append(line)
                    line = htmlReader.ReadLine()
                Loop
            End Using
        Catch objError As Exception
            Throw
        End Try

        Return htmlContent
    End Function
End Class
